import axios  from "axios";

const token =localStorage.getItem("token")
const request=axios.create({
    baseURL:"",
    timeout:10000,
    headers:{
        Authorization:token? token :"",
        "Content-Type":"application/x-www-form-urlencoded"
    },


})


request.interceptors.request.use((config)=>{
            return config

},(err)=>{
    return Promise.reject(err)
})


request.interceptors.response.use((response)=>{

    return response
},(err)=>{
    return Promise.reject(err)
})





export default request
